<template>
  <div>
      <button @click="increment">+ 1</button>
      <button @click="decrement">- 1</button>
  </div>
</template>

<script>
export default {
    emits: ['add', 'sub'],
    methods: {
        increment() {
            this.$emit('add')
        },
        decrement() {
            this.$emit('sub')
        }
    }
}
</script>

<style>

</style>